package com.csvw.skr.basic.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by Administrator on 2016/11/20.
 * 菜单
 */
@Entity
@Table(name = "csvw_skr_basic_menu")
public class Menu {
    @Id
    @Column(name = "pk_code", length = 100, nullable = false)
    private String code;

    @Column(name = "name", length = 20)
    private String name;

    @Column(name = "description", length = 200)
    private String description;

    @Column(name = "url", length = 200)
    private String url;

    @Column(nullable=false, columnDefinition="bit default 0")
    private boolean active;

    @Column(nullable=false, columnDefinition="bit default 0")
    private boolean app;

    private Date created;

    private Date updated;

    @Column(name = "pcode", length = 50)
    private String pcode;

    @Column(name = "level", columnDefinition="int default 1")
    private int level;

    @Column(name = "xh", columnDefinition="int default 1")
    private int xh;

    @Column(nullable=false, columnDefinition="bit default 0")
    private boolean leaf;

    @Column(name = "tabId", length = 20)
    private String tabId;

    @Column(name = "groups")
    private int groups;

    public String getTabId() {
        return tabId;
    }

    public void setTabId(String tabId) {
        this.tabId = tabId;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public boolean isApp() {
        return app;
    }

    public void setApp(boolean app) {
        this.app = app;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getXh() {
        return xh;
    }

    public void setXh(int xh) {
        this.xh = xh;
    }

    public int getGroups() {
        return groups;
    }

    public void setGroups(int groups) {
        this.groups = groups;
    }
}
